package com.aispeech.task.common.data.enums;

public enum APICode {
    OK(0, ""),
    BAD_CREDENTIALS(403, "Bad Credentials"),
    INTERNAL_ERROR(500, "Internal Error"),

    NOT_FOUND(201, "Not Found"),
    NOT_FINISHED(201, "Not Finished"),
    INTERRUPTED(251, "interrupted");

    private int code;
    private String message;

    APICode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
